package com.example.qincetest.network

import kotlinx.coroutines.flow.flow

class NetRepository {
    val service by lazy { OkHttpConfig.api }

    companion object {
        val instance by lazy { NetRepository() }
    }

    fun getArticleList(page: Int) = flow { emit(service.getArticleList(page)) }
}